from opc_client import OpcClient


if __name__ == '__main__':
    """风力发电"""
    sub_ids = (
        'ns=1;s=t|wincc1_Start_1',
        'ns=1;s=t|wincc1_WindSpeed',
        'ns=1;s=t|wincc1_WindDirection',
        'ns=1;s=t|wincc1_Start_2',
        'ns=1;s=t|wincc1_1#风轮转速',
        'ns=1;s=t|wincc1_1#风机转速',
        'ns=1;s=t|wincc1_2#风轮转速',
        'ns=1;s=t|wincc1_2#风机转速',

        'ns=1;s=t|wincc2_PLC连接',
        'ns=1;s=t|wincc2_WindSpeed',
        'ns=1;s=t|wincc2_WindDirection',
        'ns=1;s=t|wincc2_Start_3',
        'ns=1;s=t|wincc2_3#风轮转速',
        'ns=1;s=t|wincc2_3#风机转速',
    )
    ip = '192.168.2.40'
    port = 4862
    OpcClient(ip, port, sub_ids)
